package gjw.jimven.tests;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.holder.Holder;

/**
 * @创建者 Jimven
 * @创建时间 2017/8/22/0022  14:43
 */
public class NetworkImageHolderView implements Holder<Integer> {

    private ImageView imageView;

    @Override

    public View createView(Context context) {

        imageView = new ImageView(context);

        imageView.setScaleType(ImageView.ScaleType.FIT_XY);

        return imageView;

    }



    @Override

    public void UpdateUI(Context context, final int position, Integer data) {

        imageView.setImageResource(data);

    }

}